#!/usr/bin/python
# -*- coding:utf-8 -*-

import urllib2

url = 'http://www.baidu.com/'

req = urllib2.urlopen(url)

res = req.read()

print res

print req.msg
dir(res)